'use strict';

import { Parser, util } from '../..';
import { SelectStatement } from '../../lib/types';
const parser = new Parser();

export function getParsedSql(sql: string) {
    const ast = parser.parse(sql) as SelectStatement;
    return util.astToSQL(ast);
}
